﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PSE.Updater.Client.UI
{
    /// <summary>
    /// Interaction logic for ProgramarHorariosConfirma.xaml
    /// </summary>
    public partial class ScheduleConfirm : Window
    {
        public Action OnConfirmClick { get; set; }
        public Action OnPostponeClick { get; set; }

        public bool GetInstallOnWinStart { get; private set; }

        public ScheduleConfirm()
        {
            InitializeComponent();
        }

        private void Confirm_Click(object sender, RoutedEventArgs e)
        {
            this.GetInstallOnWinStart = InstallOnWinStart.IsChecked.HasValue && InstallOnWinStart.IsChecked.Value;

            if (OnConfirmClick != null)
                OnConfirmClick();
        }

        private void Postpone_Click(object sender, RoutedEventArgs e)
        {
            if (OnPostponeClick != null)
                OnPostponeClick();
        }
    }
}
